<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-06-06
  Time: 20:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加信息</title>
</head>
<style>
    table{
        border: 1px black;
        border-style: solid;
    }
    td{
        text-align: center;
    }
    select{
        width: 150;
    }
    option{
        text-align: center;
    }
</style>
<body>
<h2>添加信息</h2>
<form action="/add" method="post">
<table>
    <tr>
        <th>学生姓名</th>
        <td><select name="sname" id="">
            <c:forEach items="${list}" var="a">
                <option value="${a.sid}">
                ${a.sname}
            </option>
            </c:forEach>

        </select></td>
    </tr>
    <tr>
        <th>考勤时间</th>
        <td><input type="datetime-local" name="time"></td>
    </tr>
    <tr>
    <th>考勤状况</th>
        <td>已到<input type="radio" name="type" value="1">
            迟到<input type="radio" name="type" value="2">
            旷课<input type="radio" name="type" value="3">
        </td>
    </tr>
    <tr>
        <td colspan="2">
        <input type="submit" value="提交">
        </td>
    </tr>
</table>
</form>
</body>
</html>
